function onPageReady() {
    var types = ["", "times", "policies", "videos"];
    var page = initPage(".main-bg", ".main", ".policy-list", {
        url: "/api/home/searchFavorite",
        type: "post",
        dataType: "json",
        headers: {},
        data: {id: "", type: "3"},
        success: function (result) {
            for (var i in result.data) {
                var item = result.data[i];
                item.type = types[item.type];
                $(".policy-list").render("#item", item);
                page.setLastRecordId(item.id);
            }
        }
    }, "id");
}